# -*- coding: utf-8 -*-
import  requests
from lxml import etree
import re
headers={
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Accept-Encoding':'gzip, deflate',
'Accept-Language':'zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6',
'Cache-Control':'max-age=0',
'Connection':'keep-alive',
'Cookie':'__51cke__=; UM_distinctid=17988cf36813ad-0cf88aee2dcf71-2363163-1fa400-17988cf3682371; bdshare_firstime=1621497956737; zycna=iM9K1KPUijIBAXWITjKTzanT; CNZZDATA4347805=cnzz_eid%3D69751389-1621497785-http%253A%252F%252Fwww.576tv.com%252F%26ntime%3D1621519789; __tins__2040671=%7B%22sid%22%3A%201621520387753%2C%20%22vd%22%3A%202%2C%20%22expires%22%3A%201621523287507%7D; __51laig__=55',
'Host':'www.576tv.com',
'Upgrade-Insecure-Requests':'1',
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36'
}
url='http://www.576tv.com/Program/232475.html'
get_move=requests.get(url,headers=headers)
tree=etree.HTML(get_move.text)
aa=tree.xpath('//div[@id="playerBox"]//text()')
print(aa)
